package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户日打卡信息
 */
@Getter
@Setter
@Document(collection = "user_day_daily_attendance_info")
public class UserDayDailyAttendanceInfo extends EntityBase {

    @Indexed
    private String userId;
    /**
     * 日期时间
     */
    @Indexed
    private Date dayTime;
    @Indexed
    private String activityId;
    @Indexed
    private String taskId;
    /**
     * 是否打卡
     */
    private Boolean signUp = Boolean.FALSE;
    /**
     * 打卡时间
     */
    private Date signUpTime;
    /**
     * 运动步数,默认QQ
     */
    private Integer movementStep = 0;
    /**
     * 步数获取时间
     */
    private Date movementStepTime;
    /**
     * 是否补卡
     */
    private Boolean reissue = Boolean.FALSE;
    /**
     * 补卡类型,0:邀请,1:广告,2:扣减积分,3:现金
     */
    private Integer reissueType;
    /**
     * 补卡明细
     */
    private String reissueDesc;
    /**
     * 补卡时间
     */
    private Date reissueTime;
    /**
     * 时长,单位毫秒
     */
    private Long duration;
    /**
     * 业务ID,如广告的ID
     */
    private String bizId;
    /**
     * 序号
     */
    private Integer no;
    /**
     * 天字符串
     */
    private String dayTimeStr;
    /**
     * 打卡状态, ok:已打卡,no:未打卡,pending:未开始
     */
    private String signUpType;
}
